%Script to delete from S3DB
%Q.key='kHojpuy2fE4rvx7';
%Q.url='http://ibl.mdanderson.org/edu/';

%select all items from Collection (eg Data)
S = selectItems(Q, 16811); %%Put the Collection ID here%%

%get all the item_id into a cell array
x={S(:).item_id};

%delete away...
display('Starting deletion...')
for i=1:size(x,2)
    disp(['deleting item:  ', num2str(i)]);
    D = deleteItems(Q, x{i});
end
display('Done deleting...')